<#-- Macro define --
-- @author pzp
-- @date 2015-11-19
-->

<#macro CroomsIdentity ident>
	case ${ident}
	when 256  then 'U'
	when 512  then 'T'
	when 1024 then 'G'
	else 'O' end
</#macro>

<#macro CroomsAcademy cid>
	<#assign acaList=[
		{"name": "医学院", "ids":[13,14,4058,4069,4094,4131,4166,4176,4267,4300,4321,4398,4512,4633,4705,4793,4808,5145,5151,5152,5153,5159,5171,5172,5173,5303,5398,5437,5642,5857,5898,5981]},
		{"name": "公共管理学院", "ids":[16,17,1392,5700,5762]},
		{"name": "理学院", "ids":[18,19,5535,5696,5746,5959,4255,4392,4659,4662,4733,4751,5447,5840]},
		{"name": "国际教育学院", "ids":[22,23,4555,4801,5641,5990]},
		{"name": "电气工程学院", "ids":[28,29,1371,5912,4710,5862]},
		{"name": "建筑工程学院", "ids":[33,34,1370,5910]},
		{"name": "管理学院", "ids":[38,115,1201,5396,5657,4026,5795]},
		{"name": "环境与资源学院", "ids":[40,41,1335]},
		{"name": "信息科学与工程学院", "ids":[42,43,5574,4848,4911,4956,4978,4997,5252]},
		{"name": "经济学院", "ids":[46,62,5507,5676,5660]},
		{"name": "人文学院", "ids":[49,108,1220,5706,4120,5914]},
		{"name": "药学院", "ids":[52,53,5406,5630,4169,4185,4231,4239,4251,4294,4316,5149,5160,5167,5168,5177,5178,5180,5779,5894,5897]},
		{"name": "竺可桢学院", "ids":[84,145,5504]},
		{"name": "教育学院", "ids":[109,110,1323,5853,5678]},
		{"name": "光华法学院", "ids":[111,112,1350]},
		{"name": "生命科学学院", "ids":[118,119,1264,5935]},
		{"name": "继续教育学院", "ids":[143,144,3749,4170,4230,4332,4350,4391,4403,4450,4509,4510,4547,4622,4630,4701,4715,4802,4811,4881,4894,4909,4910,4926,4960,4971,4991,4995,5251,5621,5697,5975]},
		{"name": "外语学院", "ids":[314,315,5886]},
		{"name": "农学院", "ids":[328,329]},
		{"name": "传媒学院", "ids":[330,331]},
		{"name": "动科院", "ids":[332,333]},
		{"name": "计算机科学与技术学院", "ids":[1213,4032,4048,5664,4033,4034]},
		{"name": "软件学院", "ids":[1512,2419,2420]},
		{"name": "求是学院", "ids":[1659,4042,4043]},
		{"name": "机械与能源工程学院", "ids":[4046,4047,5933,4767,4961,4976]},
		{"name": "材料与化学工程学院", "ids":[4074,4075,5796,4711,4862,5462,5934,5943]}
	]/>
	case ${cid}
	<#list acaList as a>
	<#assign aid = a.ids[0]/>
	<#list a.ids as id>
	when ${id} then ${aid}
	</#list>
	</#list>
	else 999999 end
</#macro>